import { http } from "./request";

export default {
  UserPagedList(data: any) {
    //分页查询用户列表 ,返回用户列表
    return http.request({
      url: "/api/User/PagedList",
      method: "post",
      data: data,
    });
  },
  UserCreateUserWithRoles(data: any) {
    //运维管理员账号-新增管理员 ,返回新增的user_id
    return http.request({
      url: "/api/User/CreateUserWithRoles",
      method: "post",
      data: data,
    });
  },
   UserCreate(data: any) {
    //删除用户信息
    return http.request({
      url: "/api/User/Create",
      method: "post",
      data: data,
    });
  },
  UserDelete(data: any) {
    //删除用户信息
    return http.request({
      url: "/api/User/Delete",
      method: "post",
      data: data,
    });
  },
  UserUpdate(data: any) {
    //用户更新信息
    return http.request({
      url: "/api/User/Update",
      method: "post",
      data: data,
    });
  },
  UserFetchModel(data: any) {
    //用户详情信息 返回用户详情信息
    return http.request({
      url: "/api/User/FetchModel",
      method: "post",
      data: data,
    });
  },
  CustomerPagedList(data: any) {
    //客户账号列表
    return http.request({
      url: "/api/Customer/PagedList",
      method: "post",
      data: data,
    });
  },
  CustomerUserPagedList(data: any) {
    //客户账号列表
    return http.request({
      url: "/api/CustomerUser/PagedList",
      method: "post",
      data: data,
    });
  },
   CustomerTypeOptions(data: any) {
    //客户分类下拉选项
    return http.request({
      url: '/api/CustomerType/Options',
      method: 'post',
      data: data,
    })
  },
  CustomerOptions(data: any) {
    //客户账号下拉选项
    return http.request({
      url: "/api/Customer/Options",
      method: "post",
      data: data,
    });
  },
  CustomerExport(data: any) {
    //客户账号导出
    return http.request({
      url: "/api/Customer/Export",
      method: "post",
      data: data,
    });
  },
  CustomerCreate(data: any) {
    //客户账号新增 - 使用新的CreateCustomerWithUser接口
    return http.request({
      url: "/api/Customer/CreateCustomerWithUser",
      method: "post",
      data: data,
    });
  },
   CustomerUserCreate(data: any) {
    //客户账号新增 - 使用新的CreateCustomerWithUser接口
    return http.request({
      url: "/api/CustomerUser/Create",
      method: "post",
      data: data,
    });
  },
  CustomerFetchModel(data: any) {
    //客户账号详情
    return http.request({
      url: "/api/Customer/FetchModel",
      method: "post",
      data: data,
    });
  },
  CustomeruserFetchModel(data: any) {
    //客户账号详情
    return http.request({
      url: "/api/Customeruser/FetchModel",
      method: "post",
      data: data,
    });
  },
  CustomerStatusOptions(data: any) {
    //客户状态下拉选项
    return http.request({
      url: '/api/CustomerStatus/Options',
      method: 'post',
      data: data,
    })
  },
  CustomerDelete(data: any) {
    //客户账号删除
    return http.request({
      url: "/api/Customer/Delete",
      method: "post",
      data: data,
    });
  },
  CustomeruserDelete(data: any) {
    //客户账号删除
    return http.request({
      url: "/api/Customeruser/Delete",
      method: "post",
      data: data,
    });
  },
  CustomerUpdate(data: any) {
    //客户账号更新
    return http.request({
      url: "/api/Customer/Update",
      method: "post",
      data: data,
    });
  },
  CustomeruserUpdate(data: any) {
    //客户账号更新
    return http.request({
      url: "/api/Customeruser/Update",
      method: "post",
      data: data,
    });
  },
  MembershipPagedList(data: any) {
    //会员分页查询
    return http.request({
      url: "/api/Membership/PagedList",
      method: "post",
      data: data,
    });
  },
  MembershipExport(data: any) {
    //会员导出
    return http.request({
      url: "/api/Membership/Export",
      method: "post",
      data: data,
    });
  },
  MembershipFetchModel(data: any) {
    //会员详情
    return http.request({
      url: "/api/Membership/FetchModel",
      method: "post",
      data: data,
    });
  },
  MembershipUpdate(data: any) {
    //会员更新
    return http.request({
      url: "/api/Membership/Update",
      method: "post",
      data: data,
    });
  },
  MembershipStrategyPagedList(data: any) {
    //会员策略分页查询
    return http.request({
      url: "/api/MembershipStrategy/PagedList",
      method: "post",
      data: data,
    });
  },
  MembershipStrategyFetchModel(data: any) {
    //会员策略详情
    return http.request({
      url: "/api/MembershipStrategy/FetchModel",
      method: "post",
      data: data,
    });
  },
  MembershipStrategyCreate(data: any) {
    //会员策略创建
    return http.request({
      url: "/api/MembershipStrategy/Create",
      method: "post",
      data: data,
    });
  },
  MembershipStrategyUpdate(data: any) {
    //会员策略更新
    return http.request({
      url: "/api/MembershipStrategy/Update",
      method: "post",
      data: data,
    });
  },
  MembershipStrategyOptions(data: any) {
    //会员策略下拉选项
    return http.request({
      url: "/api/MembershipStrategy/Options",
      method: "post",
      data: data,
    });
  },
  MembershipStrategyExport(data: any) {
    //会员策略导出
    return http.request({
      url: "/api/MembershipStrategy/Export",
      method: "post",
      data: data,
    });
  },
  ExperimentEquipmentPagedList(data: any) {
    //实验设备分页查询
    return http.request({
      url: "/api/Equipment/PagedList",
      method: "post",
      data: data,
    });
  },
  ExperimentEquipmentCreate(data: any) {
    //实验设备新增
    return http.request({
      url: "/api/Equipment/CreateEquipment",
      method: "post",
      data: data,
    });
  },
  ExperimentEquipmentCreateWithFormData(formData: FormData) {
    //实验设备新增 - FormData格式
    return http.request({
      url: "/api/Equipment/CreateEquipment",
      method: "post",
      data: formData,
      headers: {
        'Content-Type': 'multipart/form-data',
      },
    });
  },
  ExperimentEquipmentUpdate(data: any) {
    //实验设备更新
    return http.request({
      url: "/api/Equipment/Update",
      method: "post",
      data: data,
    });
  },
  ExperimentEquipmentFetchModel(data: any) {
    //实验设备详情
    return http.request({
      url: "/api/Equipment/FetchModel",
      method: "post",
      data: data,
    });
  },
  ExperimentEquipmentDelete(data: any) {
    //实验设备删除
    return http.request({
      url: "/api/Equipment/Delete",
      method: "post",
      data: data,
    });
  },
  ExperimentEquipmentExport(data: any) {
    //实验设备导出
    return http.request({
      url: "/api/Equipment/Export",
      method: "post",
      data: data
    });
  },
  ExperimentEquipmentOptions(data: any) {
    //实验设备下拉选项
    return http.request({
      url: "/api/Equipment/Options",
      method: "post",
      data: data,
    });
  },
  EquipmentCategoryOptions(data: any) {
    //设备分类下拉选项
    return http.request({
      url: "/api/EquipmentCategory/Options",
      method: "post",
      data: data,
    });
  },
  InstrumentPagedList(data: any) {
    //仪器分页查询列表
    return http.request({
      url: "/api/Instrument/PagedList",
      method: "post",
      data: data,
    });
  },
  InstrumentOptions(data: any) {
    //仪器下拉选项
    return http.request({
      url: "/api/Instrument/Options",
      method: "post",
      data: data,
    });
  },
  InstrumentCategoryOptions(data: any) {
    //仪器分类下拉选项
    return http.request({
      url: "/api/InstrumentCategory/Options",
      method: "post",
      data: data,
    });
  },
  InstrumentDelete(data: any) {
    //仪器删除
    return http.request({
      url: "/api/Instrument/Delete",
      method: "post",
      data: data,
    });
  },
  InstrumentDetail(data: any) {
    //仪器详情
    return http.request({
      url: "/api/Instrument/FetchModel",
      method: "post",
      data: data,
    });
  },
  InstrumentCreate(data: any) {
    //仪器新增
    return http.request({
      url: "/api/Instrument/Create",
      method: "post",
      data: data,
    });
  },
  InstrumentUpdate(data: any) {
    //仪器更新
    return http.request({
      url: "/api/Instrument/Update",
      method: "post",
      data: data,
    });
  },
  UserFavInstrumentExport(data: any) {
    //用户收藏仪器导出
    return http.request({
      url: "/api/UserFavInstrument/Export",
      method: "post",
      data: data,
    });
  },
};
